package com.property.manage.model.rent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@TableName("t_rent_payment")
public class RentPaymentEntity {

    public static final Byte STATE_NORMAL = 0;

    public static final Byte STATE_DELETED = 1;

    /**
     * 正常收费
     */
    public static final Byte OTHER_TYPE_NORMAL = 0;

    /**
     * 欠费收取
     */
    public static final Byte OTHER_TYPE_ARREARS = 1;

    @TableId(type = IdType.AUTO)
    private Integer id;
    //租金
    private BigDecimal money;
    //物业费
    private BigDecimal propertyFee;
    //其他费用
    private BigDecimal otherFee;
    //总金额=租金+物业费+其他费用
    private BigDecimal totalMoney;
    private Integer buildingId;
    private Integer villageId;
    private Integer rentId;
    private Integer type;
    private LocalDate createTime;
    private String name;
    //使用预存
    private BigDecimal preDeposit;
    /**
     * 预存转存
     */
    private BigDecimal returnDeposit;
    //预存余额
    private BigDecimal dBalance;
    //现金
    private BigDecimal cash;
    //票据号
    private String billOn;
    private String drawer;

    private String remark;

    private Byte otherType;

    private Byte state;
}
